package com.Lab427.workflow.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Map;

@Data
@TableName(value = "workflow_node", autoResultMap = true)
public class WorkflowNode {
    @TableId(type = IdType.AUTO)
    private Long id;
    private Long workflowId;
    private Long nodeId;
    private String type;
    private String name;
    @TableField(typeHandler = JacksonTypeHandler.class)
    private Map<String, Object> config;
//    private String config;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;

    // getter & setter
}
